PROJECT(test)

file(GLOB src "*.cpp")

file(GLOB hdr "*.h")
	
add_executable(${PROJECT_NAME} ${src} ${hdr})
target_link_libraries(${PROJECT_NAME} glfw ${OPENGL_LIBRARY})

set(assets_dir ${CMAKE_CURRENT_SOURCE_DIR}/assets)

add_custom_command(
      TARGET ${PROJECT_NAME} POST_BUILD
          COMMAND ${CMAKE_COMMAND} -E copy_directory ${assets_dir} ${CMAKE_CURRENT_BINARY_DIR}/..
              WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
			  
			  



